@(message: String)

@main("Ebean test") {

    <button onclick="test()">测试</button>
    <button onclick="createTestData()">创建测试数据</button>

    <script>
        var test = function(){
        $.post("/ebean/test",{},function(result){
            alert(result.data)
            },'json')
        }

        var createTestData = function(){
        $.post("/ebean/createTestData",{},function(result){
        alert(result.data)
        },'json')
        }

    </script>
}
